package com.yao.seckill.web.controller;


import com.yao.seckill.core.SeckillResponse;
import com.yao.seckill.web.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yaobing
 * @since 2022-08-29
 */
@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {

    @Autowired
    IUserService userService;

    /**
     * @description 
     * @author yaobing
     * @created Date 2022/08/29 23:34:32
     * @modified By  yaobing
     * @modified Date  2022/08/29 23:34:32
    
     * @return java.util.List
     */
    
    @RequestMapping("list")
    public SeckillResponse list(String name, Integer age,Integer[] ids){
        return SeckillResponse.success(userService.list());
    }


}
